//import createjs from "../createjs"
import cjs=createjs
/** 预加载资源 */
const manifest=[{id:'bgm',src:'audio/bgm.mp3'},
    {id:'boom',src:'audio/boom.mp3'},
    {id:'bullet',src:'audio/bullet.mp3'},
    {id:'common',src:'images/Common.png'},
    {id:'home_bgm',src:'audio/home_bgm.mp3'},
    {id:'config',src:'json/config.json'},
    {id:'gold_coin_font',src:'images/gold_coin_font.png'},
    {id:'signin_bg',src:'images/signin_bg.png'},
    {id:'signin_close',src:'images/signin_close.png'},
    {id:'signin_title',src:'images/signin_title.png'},
    {id:'image_fragments',src:'images/image_fragments.png'},
    {id:'sign_font',src:'images/sign_font.png'}]
const ModuleEvent={
    MainModule:''
}
/** 视图事件 */
const ViewEvent={
    /** 显示大厅界面 */
    SHOW_HOME_VIEW:'2Io',
    /** 显示主界面 */
    SHOW_MAIN_VIEW:'3dx',
    /** 显示胜利弹窗 */
    SHOW_WIN_DIALOG:'e3b',
    /** 显示签到弹窗 */
    SHOW_SIGNIN_DIALOG:'4UQ',
    /** 增加命中敌机数量 */
    INC_ENEMY_COUNT:'LUc',
    /** 增加金币数量 */
    INC_GOLDCOIN_COUNT:'FXH',
    /** 绘制调试 */
    DRAW_DEBUG:'9yr',
    /** 关闭视图 */
    CLOSE_VIEW:'4HW'
}
const TouchEvent={
    TOUCH_START:'touch_start',
    TOUCH_END:'touch_end'
}
class AtlasMeta{
    rect:cjs.Rectangle
    grid:cjs.Rectangle
    constructor(rx:number,ry:number,rw:number,rh:number,gx:number,gy:number,gw:number,gh:number){
        this.rect=new cjs.Rectangle(rx,ry,rw,rh)
        this.grid=new cjs.Rectangle(gx,gy,gw,gh)
    }
}
const Atlas={
    Panel:new AtlasMeta(271,127,112,82,3,17,112-6,82-3-17),
    Dialog:new AtlasMeta(0,0,119,108,21,34,99-21,89-34)
}
const LOCAL_KEY='createjs.site'
//const RankTitle=['热血青铜','不屈白银','英勇黄金','坚韧铂金','不朽星钻','荣耀皇冠','超级王牌','无敌战神']
/*const signConfig=[
    {
        gold_coin:100
    },{
        gold_coin:200
    },{
        gold_coin:300
    },{
        gold_coin:400
    },{
        gold_coin:500
    },{
        gold_coin:600
    },{
        gold_coin:1000
    }
]*/
export {
    manifest,
    ViewEvent,
    Atlas,
    AtlasMeta,
    LOCAL_KEY,
    TouchEvent
}